package com.boot.util;

import java.math.BigDecimal;

public class AdResult {
	private int status;// 0失败,1成功,2未知
	private String msg;//消息
	private Object data;//返回结果
	private BigDecimal total_award;

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	public BigDecimal getTotal_award() {
		return total_award;
	}

	public void setTotal_award(BigDecimal total_award) {
		this.total_award = total_award;
	}
	
	/**
	 * 设置结果
	 * @param data
	 * @param status
	 * @param msg
	 * @return
	 */
	public static AdResult setResult(Object data,int status,String msg){
		AdResult result=new AdResult();
		result.data=data;
		result.status=status;
		result.msg=msg;
		return result;
	}
}
